export function getQueryParams() {
    const params = {};
    const queryString = window.location.search.slice(1);
    if (queryString) {
        queryString.split('&').forEach(pair => {
            const [key, value] = pair.split('=');
            if (key) {
                params[key] = decodeURIComponent(value || '');
            }
        });
    }
    return params;
}